FATAL ERROR: Could not find ./share/fill_help_tables.sql

[root@c01 mysql-5.6.33]# /apps/mysql-5.6.33/scripts/mysql_install_db --datadir=/data/my_db --user=mysql
FATAL ERROR: Could not find ./share/fill_help_tables.sql

If you compiled from source, you need to run 'make install' to
copy the software into the correct location ready for operation.

If you are using a binary release, you must either be at the top
level of the extracted archive, or pass the --basedir option
pointing to that location.

 加上参数--basedir=

问题解决:

[root@c01 mysql-5.6.33]# /apps/mysql-5.6.33/scripts/mysql_install_db --datadir=/data/my_db --basedir=/apps/mysql-5.6.33/ --user=mysql

 

posted @ 2017-06-29 18:43  bass  阅读(3837)  评论(0编辑  收藏  举报